#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <mosquitto.h>
#include <QDebug>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QGridLayout>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = nullptr);
    ~Widget();
    QLineEdit *lineedit1, *lineedit2;

private slots:
    //void on_pushButton_clicked();
    void on_button1_clicked();
    void on_button2_clicked();

private:
    Ui::Widget *ui;
 struct mosquitto *mosq;
    QLabel *label1, *label2;

    QPushButton *button1, *button2;
    QGridLayout *mylayout;

};

#endif // WIDGET_H
